package com.stylefeng.guns.rest.common.persistence.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.stylefeng.guns.rest.common.persistence.model.Article;
import com.stylefeng.guns.rest.modular.artitle.controller.dto.ArticleDetailResponse;
import com.stylefeng.guns.rest.modular.catalogy.controller.dto.ArticleListResponse;
import com.stylefeng.guns.rest.modular.users.controller.dto.UserInfoRequest;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author stylefeng
 * @since 2017-08-23
 */
public interface ArtitleMapper extends BaseMapper<Article> {
    List<Article> findHotUserArticles(int userId);
    ArticleDetailResponse queryArticleDetail(Map<String, Object> data);
    List<ArticleDetailResponse> userArticleList(Map<String, Object> data);
    List<Article> getUserArticleByCare(Map<String, Object> data);
    List<ArticleListResponse> queryArticleList(Map<String, Object> data);
    List<ArticleListResponse> findArtitleByKeyword(Map<String, Object> data);
    void addViewNum(Map<String, Object> data);
    List<ArticleDetailResponse> userAllList(Map<String, Object> data);

    List<Article> getFactionList();
    List<Article> getVedioListNotImage();
}